package top.fzqblog;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import top.fzqblog.service.CrawlerShareService;
import top.fzqblog.service.CrawlerUserService;

/**
 * Created by 抽离 on 2017/7/17 0017.
 */
@SpringBootTest
@RunWith(SpringRunner.class)
public class PanUserCrawler {

    @Autowired
    private CrawlerUserService crawlerUserService;

    @Autowired
    private CrawlerShareService crawlerShareService;

    @Test
    public void testCrawlerUser(){
        crawlerUserService.crawler();
    }

    @Test
    public void testCrawlerShare(){
        crawlerShareService.crawler();
    }

    @Test
    public void testCompletableService(){
        crawlerShareService.crawlerByCompletableService();
    }
}
